import {ref} from 'vue'
function useMemoPassword(){
    // 从本地存储里获取记住密码按钮的状态
    let memoVal = ref(localStorage.getItem('memoPassword') == 'true' ? true : false)
    // 将记住密码的状态放在本地存储里
    const onMemoPassword = (value)=>{
        localStorage.setItem('memoPassword',memoVal.value=value)
    }
    return {
        memoVal,
        onMemoPassword
    }
}
export default useMemoPassword